package JunitTest;

    public class Person2 {
    private String name;
    private String age;

    // 构造函数
    public Person2() {
    }

    // name的setter和getter方法
    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    // age的setter和getter方法
    public void setAge(String age) {
        this.age = age;
    }

    public String getAge() {
        return age;
    }

    // 重写toString方法
    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age='" + age + '\'' +
                '}';
    }
}


